package com.ly.heart.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.heart.domain.SurveyCostEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * 勘测申请费用明细Mapper接口
 * @author wutao
 * @date 2024-05-22
 */
@Mapper
public interface SurveyCostMapper extends BaseMapper<SurveyCostEntity> {
    /**
     * 查询勘测申请费用明细
     * @param id 勘测申请费用明细ID
     * @return 勘测申请费用明细
     */
    SurveyCostEntity selectErpSurveyCostInfoById (String id);

    /**
     * 查询勘测申请费用明细列表
     * @param erpSurveyCostInfo 勘测申请费用明细
     * @return 勘测申请费用明细集合
     */
    List<SurveyCostEntity> selectErpSurveyCostInfoList (SurveyCostEntity erpSurveyCostInfo);

    /**
     * 新增勘测申请费用明细
     * @param erpSurveyCostInfo 勘测申请费用明细
     * @return 结果
     */
    int insertErpSurveyCostInfo (SurveyCostEntity erpSurveyCostInfo);

    /**
     * 修改勘测申请费用明细
     * @param erpSurveyCostInfo 勘测申请费用明细
     * @return 结果
     */
    int updateErpSurveyCostInfo (SurveyCostEntity erpSurveyCostInfo);

    /**
     * 删除勘测申请费用明细
     * @param id 勘测申请费用明细ID
     * @return 结果
     */
    int deleteErpSurveyCostInfoById (String id);

    /**
     * 批量删除勘测申请费用明细
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    int deleteErpSurveyCostInfoByIds (String[] ids);

    /**
     * 通过勘测申请Id删除多条预算明细
     * @param applyId
     * @return
     */
    int deleteSurveyCostByApplyIds (String applyId);
}
